package dao;

import java.util.List;
import org.apache.ibatis.session.SqlSession;
import model.MemberVO;
import mybatis3.helper.SqlSessionsFactory;

public class MemberDAO {
	public static List<MemberVO> listMember() {
		List<MemberVO> result = null;
		SqlSession sess = null;
		try{
			sess = SqlSessionsFactory.openSession();
			result = sess.selectList("MemberMapper.listMember");
			
		}finally{
			sess.close();
		}return result;
	}
public static MemberVO viewMember(String mno){
	MemberVO result =null;
	SqlSession sess =null;
	
	try{
		sess = SqlSessionsFactory.openSession();
		result = sess.selectOne("MemberMapper.viewMember",mno);
	}finally{
		sess.close();
	}return result;
}
		
}
